package com.wr.function09;

import java.util.function.Supplier;

// 供给型接口  没有参数，只有返回值
public class Demo4 {
    public static void main(String[] args) {
        Supplier<String> supplier = () -> {
            System.out.println("123");
            return "123";
        };

        System.out.println(supplier.get());
    }
}
